<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>开票</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  //编写自定义JS代码
	  function countby1() {
		  var orQty = $("#orQty").val();
          var cpTiji = $("#cpTiji").val();
          var count = 1 * orQty * cpTiji;
          count = count.toFixed(2)
          $("#by1").val(count);
      }
  </script>
 </head>
 <body>
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="tKpOrderOneController.do?doAdd" >
					<input id="id" name="id" type="hidden" value="${tKpOrderOnePage.id }"/>
	  <input id="cusCode" name="cusCode" type="hidden" value="${tKpOrderOnePage.cusCode }"/>

	  <input id="gdCode" name="gdCode" type="hidden" value="${tKpOrderOnePage.gdCode }"/>
	  <input id="cpCode" name="cpCode" type="hidden" value="${tKpOrderOnePage.cpCode }"/>


	  <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">


		  <tr>

			  <td align="right">
				  <label class="Validform_label">
					  产品名称:
				  </label>
			  </td>
			  <td class="value">
				  <input id="cpName" name="cpName" type="text" style="width: 150px" class="searchbox-inputtext" datatype="*" ignore="checked"  onclick="popupClick(this,'cus_code,cus_name,cus_type,gd_code,gd_name,cp_code,cp_name,cp_jiage,cp_guige,cp_jifei,cp_tiji,cp_dengji','cusCode,cusName,cusType,gdCode,gdName,cpCode,cpName,cpJiage,cpGuige,cpJifei,cpTiji,cpDengji','pop_kp_jiage_one')"  />
				  <span class="Validform_checktip"></span>
				  <label class="Validform_label" style="display: none;">产品名称</label>
			  </td>
			  <td align="right">
				  <label class="Validform_label">
					  数量:
				  </label>
			  </td>
			  <td class="value">
				  <input id="orQty" name="orQty" type="text" style="width: 150px" class="inputxt" datatype="*" oninput="countby1()" ignore="checked" />
				  <%--<input id="by1" readonly="readonly" name="by1" type="text" style="width: 70px" class="inputxt"   />方--%>

				  <span class="Validform_checktip"></span>
				  <label class="Validform_label" style="display: none;">数量</label>
			  </td>
		  </tr>

		  <tr>
			  <td align="right">
				  <label class="Validform_label">
					  方量:
				  </label>
			  </td>
			  <td class="value">
				  <input id="by1" name="by1" type="text" style="width: 150px" class="inputxt" 	datatype="*"	 ignore="checked" />
				  <span class="Validform_checktip"></span>
				  <label class="Validform_label" style="display: none;">方量</label>
			  </td>
			  <td align="right">
				  <label class="Validform_label">
					  备注:
				  </label>
			  </td>
			  <td class="value">
				  <input id="orRemark" name="orRemark" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
				  <span class="Validform_checktip"></span>
				  <label class="Validform_label" style="display: none;">备注</label>
			  </td>
		  </tr>

				<tr>
					<td align="right">
						<label class="Validform_label">
							托盘:
						</label>
					</td>
					<td class="value">
							   <input id="orTuopan" name="orTuopan" type="text" style="width: 150px"   class="inputxt"     ignore="ignore" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">托盘</label>
						</td>


					<td align="right">
						<label class="Validform_label">
							订单类型:
						</label>
					</td>
					<td class="value">
					     	 <input id="orderType" readonly="readonly" name="orderType" type="text" style="width: 150px" class="inputxt" value="${orderType}"  ignore="ignore" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">订单类型</label>
						</td>
				</tr>


				<tr>
					<td align="right">
						<label class="Validform_label">
							客户名称:
						</label>
					</td>
					<td class="value">
					     	 <input id="cusName" name="cusName" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">客户名称</label>
						</td>
					<td align="right">
						<label class="Validform_label">
							客户类型:
						</label>
					</td>
					<td class="value">
					     	 <input id="cusType" name="cusType" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">客户类型</label>
						</td>
					</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							单价:
						</label>
					</td>
					<td class="value">
						<input id="cpJiage" readonly="readonly" name="cpJiage" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">单价</label>
					</td>
					<td align="right">
						<label class="Validform_label">
							工地名称:
						</label>
					</td>
					<td class="value">
					     	 <input id="gdName" name="gdName" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">工地名称</label>
						</td>
					</tr>

				<tr>
					<td align="right">
						<label class="Validform_label">
							规格*:
						</label>
					</td>
					<td class="value">
					     	 <input id="cpGuige" readonly="readonly" name="cpGuige" type="text" class="inputxt"  ignore="ignore" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">规格*等级</label>
						</td>
					<td align="right">
						<label class="Validform_label">
							等级:
						</label>
					</td>
					<td class="value">
						<input id="cpDengji" readonly="readonly" name="cpDengji" type="text" class="inputxt"  ignore="ignore" />
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">等级</label>
						</td>
					</tr>

		  <tr>
			  <td align="right">
				  <label class="Validform_label">
					  体积:
				  </label>
			  </td>
			  <td class="value">
				  <input id="cpTiji" name="cpTiji" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />

				  <span class="Validform_checktip"></span>
				  <label class="Validform_label" style="display: none;">体积</label>
			  </td>
			  <td align="right">
				  <label class="Validform_label">
					  单位:
				  </label>
			  </td>
			  <td class="value">
				  <input id="cpJifei" name="cpJifei" type="text" style="width: 150px" class="inputxt"  ignore="ignore" />
				  <span class="Validform_checktip"></span>
				  <label class="Validform_label" style="display: none;">单位</label>
			  </td>
		  </tr>
				
				
			</table>
		</t:formvalid>
 </body>
  <script src = "webpage/com/yserp/kp/tKpOrderOne.js"></script>		
